/**
 * Created by xiey on 2016/4/18.
 */
var del  = require('del'),
    util = require('gulp-util'),
    gulp = require('gulp'),
    conf = require('./common/conf');

gulp.task('clean', cb => {
    del([conf.paths.build, conf.paths.tmp]).then(paths => {
        paths.length > 0 && util.log(util.colors.green('删除文件:    \n') + util.colors.magenta(paths.join('\n')));
        cb();
    });
});